<?php 
echo doctype('xhtml1-trans');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>CENTER TELECOM - ADMINISTRA&Ccedil;&Atilde;O</title>
	<?php 
		$meta = array('name' => 'Content-type', 'content' => 'text/html; charset=iso-8859-1', 'type' => 'equiv');
		echo meta($meta);
		echo link_tag(array('href' => 'css/style.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/black-tie/jquery-ui-1.8.10.custom.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/fg.menu.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/humanmsg.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/menu.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/ui.jqgrid.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		echo link_tag(array('href' => 'css/jquery.fileupload-ui.css', 'rel' => 'stylesheet', 'type' => 'text/css', 'media' => 'screen'));
		?>
	<script src="<?php echo base_url(); ?>js/jquery-1.4.4.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo base_url(); ?>js/jquery-ui-1.8.10.custom.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo base_url(); ?>js/i18n/jquery-ui-i18n.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo base_url(); ?>js/fg.menu.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo base_url(); ?>js/humanmsg.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo base_url(); ?>js/i18n/grid.locale-pt-br.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo base_url(); ?>js/jquery.jqGrid.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo base_url(); ?>js/util.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo base_url(); ?>js/jquery.meio.mask.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo base_url(); ?>js/jquery.fileupload.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo base_url(); ?>js/jquery.fileupload-ui.js" type="text/javascript" charset="utf-8"></script>
    <script>
    	$(function() {
    		$( "#accordion" ).accordion();
    	});
    </script>
    <script type="text/javascript" >
      (function($){
        // call setMask function on the document.ready event
          $(function(){
            $('input:text').setMask();
          }
        );
      })(jQuery);
    </script>
    <script type="text/javascript">	
    	$(function(){
    		// BUTTONS
    		$('.fg-button').hover(
    			function(){ $(this).removeClass('ui-state-default').addClass('ui-state-focus'); },
    			function(){ $(this).removeClass('ui-state-focus').addClass('ui-state-default'); }
    		);

    		<?php 
    		foreach ($this->session->userdata('v_root_menu') as $dados) 
    		{
    		?>
    			$('#menu<?php echo $dados->controlador; ?>').menu({
    				content: $('#menu<?php echo $dados->controlador; ?>').next().html(),
    				flyOut: true
    			});
    		<?php
    		}
    		?>
    		// or from an external source
    	});

		function showMsg(msg)
		{
			humanMsg.displayMsg(msg);
			return false;
		}


    </script>
	<script type="text/javascript">
		$.jgrid.no_legacy_api = true;
		$.jgrid.useJSON = true;
	</script>	
	<style type="text/css">
		.addIcon {
            background-image: url("<?php echo base_url()."images/ico/add-icon.png";?>") !important;
            left: 10px;
        }	
		.editIcon {
            background-image: url("<?php echo base_url()."images/ico/pencil-icon.png";?>") !important;
            left: 10px;
        }	
		.deleteIcon {
            background-image: url("<?php echo base_url()."images/ico/delete-icon.png";?>") !important;
            left: 10px;
        }	
		.pdfIcon {
            background-image: url("<?php echo base_url()."images/ico/page-white-acrobat-icon.png";?>") !important;
            left: 10px;
        }	
		.excelIcon {
            background-image: url("<?php echo base_url()."images/ico/page-white-excel-icon.png";?>") !important;
            left: 10px;
        }	
		.printerIcon {
            background-image: url("<?php echo base_url()."images/ico/printer-icon.png";?>") !important;
            left: 10px;
        }	
		.searchIcon {
            background-image: url("<?php echo base_url()."images/ico/magnifier-icon.png";?>") !important;
            left: 10px;
        }	
		.refreshIcon {
            background-image: url("<?php echo base_url()."images/ico/rules16.png";?>") !important;
            left: 10px;
        }	
		.saveIcon {
            background-image: url("<?php echo base_url()."images/ico/disk.png";?>") !important;
            left: 10px;
        }	
		.cancelIcon {
            background-image: url("<?php echo base_url()."images/ico/cross-icon.png";?>") !important;
            left: 10px;
        }	
		.firstIcon {
            background-image: url("<?php echo base_url()."images/ico/resultset_first.png";?>") !important;
            left: 10px;
        }	
		.previousIcon {
            background-image: url("<?php echo base_url()."images/ico/resultset_previous.png";?>") !important;
            left: 10px;
        }	
		.lastIcon {
            background-image: url("<?php echo base_url()."images/ico/resultset_last.png";?>") !important;
            left: 10px;
        }	
		.nextIcon {
            background-image: url("<?php echo base_url()."images/ico/resultset_next.png";?>") !important;
            left: 10px;
        }	
		.resetIcon {
            background-image: url("<?php echo base_url()."images/ico/arrow-curve-180-left.png";?>") !important;
            left: 10px;
        }	
		.minusIcon {
            background-image: url("<?php echo base_url()."images/ico/minus.png";?>") !important;
            left: 10px;
        }	
		.plusIcon {
            background-image: url("<?php echo base_url()."images/ico/plus.png";?>") !important;
            left: 10px;
        }	
		.homeIcon {
            background-image: url("<?php echo base_url()."images/ico/home.png";?>") !important;
            left: 10px;
        }	
		.detailIcon {
            background-image: url("<?php echo base_url()."images/ico/document_layout.png";?>") !important;
            left: 10px;
        }	
		.taskIcon {
            background-image: url("<?php echo base_url()."images/ico/to_do_list_cheked_all.png";?>") !important;
            left: 10px;
        }	
		.callIcon {
            background-image: url("<?php echo base_url()."images/ico/telephone.png";?>") !important;
            left: 10px;
        }	
		.meetingIcon {
            background-image: url("<?php echo base_url()."images/ico/reseller_programm.png";?>") !important;
            left: 10px;
        }	
		.selectIcon {
            background-image: url("<?php echo base_url()."images/ico/tick.png";?>") !important;
            left: 10px;
        }	
		.carteiraIcon {
            background-image: url("<?php echo base_url()."images/ico/sitemap_color.png";?>") !important;
            left: 10px;
        }	
	</style>
</head>

<body>
	<div id="dialog-wait" title="Aguarde" style="display:none;">
		<div align="center">
			<img alt="Carregando" src="<?php echo base_url();?>images/loading.gif" />
			<br />
			<div class='ui-state-highlight ui-corner-all' style='margin-top: 3px; padding: 0 .7em;'>
				<p>
					<span class='ui-icon ui-icon-info' style='float: left; margin-right: .3em;'></span>
					Processando...
				</p>
			</div>	
		</div>
	</div>
	<div id="dialog-message" title="Alerta" style="display:none;"></div>
	<div id="dialog-confirm" title="Aten&ccedil;&atilde;o" style="display:none;">
		<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Deseja excluir permanentemente esse registro?</p>
	</div>
	<div id="nome_sistema"><div style="width:1000px; margin:auto; border:0px solid #000; text-align:right"><h3>Center Telecom - Administra&ccedil;&atilde;o</h3></div></div>
    <div id="nome_sistema2"></div>
    <div id="topo">
        <!-- LOGO MARCA -->
        <div id="logo">
        	<img src="<?php echo base_url(); ?>images/logo_center.png" width="150" />
        </div>
        <!-- X LOGO MARCA -->
        <!-- USUARIOS -->
        <div id="box_usuario">
            <div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
                <ul id="box_list_usuario">
                    <li><b><img src="<?php echo base_url(); ?>images/ico_1.png" style="margin:0 5px 0 0;" /><?php echo $this->session->userdata('v_nome_usuario'); ?></b></li>
                </ul>
            </div>
        </div>
        <!-- X USUARIOS -->
    </div>